<!--
 * @FileDescription 端子信息
 * @Author lz
 * @Date 20230612 15:21:31
 * @LastEditors lz
 * @LastEditTime 20230612 15:21:31
-->
<template>
    <div class="Dia_wp">
        <div class="Popup">
            <div class="titBox">
                端子信息 - {{ HomeContent.Default.TiData.value.Name }}
                <close-outlined class="cancel" @click="cancel" />
            </div>
            <div class="Ticontent">
                <div class="TCol_l">
                  <!-- <img src="/public/pictures/U06.png"> -->
                  <!-- 前面不要加public就可以找到路径了 错误示范：<img :src="`/public/pictures/${HomeContent.Default.TiData.value.Code}.png`"> -->
                  <img :src="`/pictures/${HomeContent.Default.TiData.value.Code}.png`">
                </div>
                <div class="TCol_r">
                    <div class="cr_r">
                        <div class="TCL_l" v-for="(item, index) in HomeContent.Default.TiData.value.Terminals" :key="index">
                            <div class="SerialNumber">{{ item.Id }}</div>
                            <div class="TCL_txt">{{ item.Description }}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script setup lang="ts">
import { CloseOutlined } from '@ant-design/icons-vue';
import { ClientMessage } from '@runtime/generate/message/ClientMessage';
import WebSocketComponent from '@runtime/module/WebSocket/WebSocketComponent';
import { Item } from 'ant-design-vue/lib/menu';
import { onMounted, reactive } from 'vue';
import HomeContent from '../HomeContent';
import MessageCode from '../MessageCode';
const state = reactive({
    tabList: <any>[],
    DetailedData: <any>[],
});
//关闭
function cancel() {
    HomeContent.Default.TiType.value = false
}
onMounted(async () => {
})

</script>

<style scoped>
.Dia_wp {
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0, 0.3);
    position: relative;
}

.Popup {
    width: 1440px;
    height: 814px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%);
    background: #FFFFFF;
    border-radius: 16px 16px 16px 16px;
}

.titBox {
    height: 54px;
    font-size: 36px;
    font-weight: 600;
    color: #000000;
    line-height: 42px;
    margin-top: 30px;
    margin-left: 40px;
}

.cancel {
    font-size: 28px;
    font-weight: 600;
    float: right;
    margin-top: 4px;
    margin-right: 30px;
}

.Ticontent {
    overflow: hidden;
    margin-top: 24px;
    margin-left: 40px;
}

.TCol_l {
    float: left;
    width: 500px;
    height: 660px;
    border-radius: 12px 12px 12px 12px;
    opacity: 1;
    border: 1px solid #E1E3E8;
    overflow-y: auto;
}

.TCol_r {
    float: left;
    width: 820px;
    height: 660px;
    border-radius: 12px 12px 12px 12px;
    opacity: 1;
    border: 1px solid #E1E3E8;
    margin-left: 40px;
    overflow-y: auto;
    padding-bottom: 10px;
}

.TCol_r::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 6px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
}

.TCol_r::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/

    border-radius: 10px;
    background: #DFE1E8;
}

.TCol_r::-webkit-scrollbar-track {
    /*滚动条里面轨道*/

    border-radius: 10px;
    background: #F8F8F8;
}

.cr_r {
    margin-top: 24px;
    margin-left: 36px;
}

.TCL_l {
    width: 748px;
    height: 72px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
}

.SerialNumber {
    width: 20px;
    height: 20px;
    background: #9BFB4E;
    border-radius: 10px 10px 10px 10px;
    opacity: 1;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 20px;
    margin-left: 18px;
    margin-right: 18px;
}

.TCL_txt {
    font-size: 16px;
    color: #202020;
}
</style>